<%--
  Created by IntelliJ IDEA.
  User: Jovi
  Date: 2018/8/30
  Time: 下午2:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="/springmvc/testRequestMapping" method="post">
    <input type="submit" value="submit">
</form>
<a href="/springmvc/testRequestMapping">Test requestMapping</a><br>
<a href="/springmvc/testMethod">Test Method</a><br>
<a href="/springmvc/testParamsAndHeaders?username=guigu&age=11">Test ParamsAndHeaders</a><br>
<a href="/springmvc/testAntPath/asdf/abc">Test TestAntPath</a><br>
<a href="/springmvc/testPathVariable/1">Test TestPathVariable</a><br>
<a href="/springmvc/testRest/1">Test Rest Get</a><br>
<form action="/springmvc/testRest" method="post">
    <input type="submit" value="TestRest POST"><br>
</form>
<form action="/springmvc/testRest/1" method="post">
    <input type="hidden" name="_method" value="DELETE"/><br>
    <input type="submit" value="TestRest DELETE">
</form>
<form action="/springmvc/testRest/1" method="post">
    <input type="hidden" name="_method" value="PUT"/><br>
    <input type="submit" value="TestRest PUT">
</form>

<a href="/springmvc/testRequestParam?username=aaaa&age=11">Test RequestParam</a><br>

<a href="/springmvc/testRequestHeader">Test RequestHeader</a><br>

<a href="/springmvc/testCookieValue">Test CookieValue</a><br>

<form action="/springmvc/testPojo" method="post">
    username:<input type="text" name="userName"/>
    <br>
    password:<input type="password" name="password"/>
    <br>
    email:<input type="text" name="email"/>
    <br>
    age:<input type="text" name="age">
    <br>
    city:<input type="text" name="address.city">
    <br>
    province:<input type="text" name="address.province">
    <br>
    <input type="submit" value="Submit"/>
</form>

<a href="/springmvc/testServlet">Test Servlet</a><br>

<a href="/springmvcResponse/testModelAndView">Test ModelAndView</a><br>

<a href="/springmvcResponse/testMap">Test Map</a><br>

<a href="/springmvcResponse/testSessionAttributes">Test SessionAttributes</a><br>

<%--模拟修改操作
    1.原始数据：1，tom，123456，123@123，12
    2.密码不能被修改
    3.表单回显，模拟操作直接在表单填写对应的属性值
--%>
<form action="/springmvcResponse/testModelAttribute" method="post">

    <input type="hidden" name="id" value="1">
    userName:<input type="text" name="userName" value="Tom"/>
    <br>
    email:<input type="text" name="email" value="123@123"/>
    <br>
    age:<input type="text" name="age" value="12"/>
    <br>
    <input type="submit" value="Submit"/>
</form>

<a href="/springmvcViewResolver/testViewAndViewResolver">Test ViewAndViewResolver</a><br>


<a href="/springmvcViewResolver/testView">Test View</a><br>

<a href="/springmvcViewResolver/testRedirect">Test Redirect</a><br>




</body>
</html>
